package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)" json:"username"`
	Password string `gorm:"type:varchar(100)" json:"password"`
}
type Film struct {
	gorm.Model
	Name   string  `gorm:"type:varchar(30)" json:"name"`
	Price  float64 `gorm:"type:decimal(10,2)" json:"price"`
	Types  string  `gorm:"type:enum('动作片','动画片','搞笑片','科幻片')" json:"types"`
	Img    string  `gorm:"type:varchar(150)" json:"img"`
	Area   string  `gorm:"type:varchar(225)" json:"area"`
	Author string  `gorm:"type:varchar(30)" json:"author"`
}
